#include "mographApp.h"

bool saving = false;
bool debug = true;

//--------------------------------------------------------------
void mographApp::setup(){
	ofSetFrameRate(60);
	ofEnableSmoothing();
	ofSetVerticalSync(true);
	ofEnableAlphaBlending();
	
	glEnable (GL_MULTISAMPLE_ARB);
    glHint (GL_MULTISAMPLE_FILTER_HINT_NV, GL_NICEST);
	
	particlesystem = new ParticleSystem(500);


}

//--------------------------------------------------------------
void mographApp::draw(){
	ofBackground(255, 255, 255);
	ofSetColor(0, 0, 0);
	particlesystem->draw();
	
	if(debug) {
	
		ofSetColor ( 0 , 0 , 0 ) ;
		//"S :: Springs on/off : " + ofToString(springEnabled) +
		//"\n C :: CursorMode repel/attract " + ofToString( cursorMode ) +
		//"\n # of particles : " + ofToString( numParticles ) +
		string output = "fps:" + ofToString( ofGetFrameRate() ) ;
		ofDrawBitmapString(output ,20,20);
	}
}


//--------------------------------------------------------------
//void mographApp::setup(){

//}

//--------------------------------------------------------------
void mographApp::update(){

}

//--------------------------------------------------------------
//void mographApp::draw(){
//
//}

//--------------------------------------------------------------
void mographApp::keyPressed(int key){

}

//--------------------------------------------------------------
void mographApp::keyReleased(int key){

}

//--------------------------------------------------------------
void mographApp::mouseMoved(int x, int y ){

}

//--------------------------------------------------------------
void mographApp::mouseDragged(int x, int y, int button){

}

//--------------------------------------------------------------
void mographApp::mousePressed(int x, int y, int button){

}

//--------------------------------------------------------------
void mographApp::mouseReleased(int x, int y, int button){

}

//--------------------------------------------------------------
void mographApp::windowResized(int w, int h){

}

//--------------------------------------------------------------
void mographApp::gotMessage(ofMessage msg){

}

//--------------------------------------------------------------
void mographApp::dragEvent(ofDragInfo dragInfo){ 

}